/**
 * @Title: auditFeedback_service.js
 * @Description: TODO
 * Copyright: Copyright (c) 2014
 * Company:中国平安
 *
 * @Project HIMS-FWA
 * @date 2014年11月19日 下午4:43:38
 * @version V1.0
 */
;
(function(){
    'use strict';

    var app = angular.module('fwa.services');
    app.service('AuditFeedbackService',['$http','BaseURL', function($http, baseUrl){

        var debug = false;
        var serv = this;


        /**
         * 根据事件编码加载事件处理
         */
        serv.query = function(params){
            return $http({
                method: "get",
                url:baseUrl+'auditFeedback/queryAuditFeedbackList.do',
                params:params
            });
        }
        /**
         *根据案件编号获取告知函相关信息
         */
        serv.getAuditNotificationInfo = function(caseCode){
            return $http({
                method: "get",
                url:baseUrl+'auditFeedback/getAuditNoticationInfo.do',
                params:{
                	caseCode:caseCode
                }
            });
        }
        
        /**
         *根据案件编 确认
         */
        serv.makeAuditFeedback = function(caseCode){
        	return $http({
                method: "get",
                url:baseUrl+'auditFeedback/makeAuditFeedback.do',
                params:{
                	caseCode:caseCode
                }
            });
        }
        
        
        /**
         *下载稽核报告通知单
         */
        serv.downLoadPdf = function(caseCode){
        	return $http({
                method: "get",
                url:baseUrl+'auditDownFileController/downPdfFile.do',
                params:{
                	caseCode:caseCode
                }
            });
        }
        
        
        
        /**
         *根据案件编号 申诉
         */
        serv.appealAuditFeedback = function(caseCode){
            return $http({
                method: "get",
                url:baseUrl+'auditFeedback/appealAuditFeedback.do',
                params:{
                	caseCode:caseCode
                }
            });
        }

    }]);

})();
